package cn.neusoft.luofa603.yuejian_29.service;
import java.util.List;
import cn.neusoft.luofa603.yuejian_29.bean.Training;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface TrainingService {
    @GET("lists")
    Call<List<Training>> getOne(
            @Query("mod")String mod,
            @Query("page")String page,
            @Query("degree")String degree
    );
    @GET("lists/mod/train")
    Call<List<Training>>getAll();

    @GET("create")
    Call<String>trainCollect(
            @Query("mod")String mod,
            @Query("train_id")String train_id,
            @Query("SessionID")String SessionID
    );

    @GET("search")
    Call<List<Training>>train_search(
            @Query("mod")String mod,
            @Query("SessionID")String SessionID,
            @Query("degree")String degree,
            @Query("search_key")String search_key
    );
    @GET("search")
    Call<List<Training>>train_key_search(
            @Query("mod")String mod,
            @Query("SessionID")String SessionID,
            @Query("search_key")String search_key
    );

}
